#osmio-modal-wrapper {
	z-index: 50;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: none;
	*position: absolute;
	*top: expression(parseInt(document.documentElement.scrollTop, 10) + "px");
	zoom: 1;
}

div.osmio-modal-wrapper {
	position: absolute;
	left: 0;
	top: 0;
	display: none;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#88000000, endColorstr=#88000000);
	-ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#88000000, endColorstr=#88000000);
}

div.osmio-modal-container {
	position: absolute;
	left: 0;
	top: 0;
	/*overflow: hidden; /* возможно это и не нужно */
	padding: 30px;
	background: white;
	border-radius: 15px;
	-moz-border-radius: 15px;
	-webkit-border-radius: 15px;
}

div.osmio-modal-content {
	overflow: auto;
	position: relative; /* IE6 */
	zoom: 1;
}

img.osmio-modal-image {
	width: 100%;
	*width: 95%; /* IE */
}

/* Debug */

ol#osmio-modal-debug {
	position: absolute;
	top: 10px;
	right: 10px;
	overflow: auto;
	width: 300px;
	height: 50%;
	color: black;
	background: #eee;
	font: normal 11px/15px "Tahoma", Sans-serif;
	display: none;
	z-index: 100;
	margin: 0;
	padding: 10px;
	list-style: none;
}

ol#osmio-modal-debug.osmio-modal-debug-collapsed {
	height: 50px;
}

ol#osmio-modal-debug li {
	float: left;
	clear: both;
	white-space: pre;
	padding: 1px 5px 2px 5px;
	margin: 0;
}

/* Header */

h1.osmio-modal-header {
	margin: -0.25em 0 20px 0;
	line-height: 1em;
	position: relative;
}

a.osmio-modal-close {
	display: block;
	position: absolute;
	right: 8px;
	top: 8px;
	font-size: 20px;
	width: 0.85em;
	line-height: 0.6em;
	padding-bottom: 0.25em;
	font-weight: bold;
}

a.osmio-modal-close, a.osmio-modal-close:hover {
	text-decoration: none;
}

h1.osmio-modal-header span {
	display: block;
	width: 100%;
	overflow: hidden;
	white-space: nowrap;
}

h1.osmio-modal-header em {
	position: absolute;
	top: 0;
	right: 0;
	width: 20px;
	height: 100%;
	background: url(images/header.png);
	_background: transparent;
	_filter: alphaImageLoader(src='images/header.png', sizingMethod='scale');
}